package org.yray.voide.m3u8;

import cn.hutool.core.io.FileUtil;
import sun.nio.cs.ext.GB18030;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class CreateFile {
    public static void main(String[] args) {
        List<String> files=new ArrayList<>();
        String pathStr="D:\\ffmpeg-master-latest-win64-gpl\\bin\\Downloads\\夫の目の前で犯●れて―背徳のレシピ\\Part_0";
        File path=new File(pathStr);
        String[] filess=path.list();
        for (String fileName:filess)
        {
            files.add("file '"+pathStr+"\\"+fileName+"'");
        }
        FileUtil.appendLines(files,pathStr+"\\1.txt", "GBK");
        System.out.println("ffmpeg -f concat -safe 0 -i \""+pathStr+"\\1.txt\""+" -c copy "+"\"D:\\ffmpeg-master-latest-win64-gpl\\bin\\Downloads\\夫の目の前で犯●れて―背徳のレシピ.mp4\"");

        // ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
    }
}
